package com.bos.data.model;

import javax.persistence.*;
import java.util.Objects;

/**
 * create by tanghuihong 2018/6/13
 */
@Entity
@Table(name = "Performance", schema = "dbo", catalog = "userdb")
public class PerformanceModel {
    private int id;
    private String pGroups;
    private String first_View;
    private String first_Reply;
    private String again_View;
    private String again_Reply;
    private String isSoil;
    private String isReport;
    private String isGreen;
    private String isPicture;
    private String pCondition;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "pGroups")
    public String getpGroups() {
        return pGroups;
    }

    public void setpGroups(String pGroups) {
        this.pGroups = pGroups;
    }


    @Basic
    @Column(name = "first_View")
    public String getFirst_View() {
        return first_View;
    }

    public void setFirst_View(String first_View) {
        this.first_View = first_View;
    }

    @Basic
    @Column(name = "first_Reply")
    public String getFirst_Reply() {
        return first_Reply;
    }

    public void setFirst_Reply(String first_Reply) {
        this.first_Reply = first_Reply;
    }
    @Basic
    @Column(name = "again_View")

    public String getAgain_View() {
        return again_View;
    }

    public void setAgain_View(String again_View) {
        this.again_View = again_View;
    }

    @Basic
    @Column(name = "again_Reply")

    public String getAgain_Reply() {
        return again_Reply;
    }

    public void setAgain_Reply(String again_Reply) {
        this.again_Reply = again_Reply;
    }

    @Basic
    @Column(name = "isSoil")
    public String getIsSoil() {
        return isSoil;
    }

    public void setIsSoil(String isSoil) {
        this.isSoil = isSoil;
    }

    @Basic
    @Column(name = "isReport")
    public String getIsReport() {
        return isReport;
    }

    public void setIsReport(String isReport) {
        this.isReport = isReport;
    }

    @Basic
    @Column(name = "isGreen")
    public String getIsGreen() {
        return isGreen;
    }

    public void setIsGreen(String isGreen) {
        this.isGreen = isGreen;
    }

    @Basic
    @Column(name = "isPicture")
    public String getIsPicture() {
        return isPicture;
    }

    public void setIsPicture(String isPicture) {
        this.isPicture = isPicture;
    }

    @Basic
    @Column(name = "pCondition")
    public String getpCondition() {
        return pCondition;
    }

    public void setpCondition(String pCondition) {
        this.pCondition = pCondition;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PerformanceModel that = (PerformanceModel) o;
        return id == that.id &&
                Objects.equals(pGroups, that.pGroups) &&
                Objects.equals(first_View, that.first_View) &&
                Objects.equals(first_Reply, that.first_Reply) &&
                Objects.equals(again_View, that.again_View) &&
                Objects.equals(again_Reply, that.again_Reply) &&
                Objects.equals(isSoil, that.isSoil) &&
                Objects.equals(isReport, that.isReport) &&
                Objects.equals(isGreen, that.isGreen) &&
                Objects.equals(isPicture, that.isPicture) &&
                Objects.equals(pCondition, that.pCondition);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, pGroups, first_View, first_Reply, again_View, again_Reply, isSoil, isReport, isGreen, isPicture, pCondition);
    }
}
